package com.seven.ascii;

public class AsciiDemo {
    public static void main(String[] args) {
        int a='A';
        System.out.println(a);

        //字符串获取ASCII码值
        String str="AaZ";
        char [] chars=str.toCharArray();
        for (char aChar : chars) {
            int asciicode=aChar;
            System.out.println(asciicode);
        }
    }
}
